<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的博客</title>
    <!-- CSS文件引入 -->
    <link rel="stylesheet" href="css/utils/variables.css">
    <link rel="stylesheet" href="css/utils/responsive.css">
    <link rel="stylesheet" href="css/components/header.css">
    <link rel="stylesheet" href="css/components/sidebar.css">
    <link rel="stylesheet" href="css/components/post-card.css">
    <link rel="stylesheet" href="css/components/footer.css">
    <link rel="stylesheet" href="css/styles.css">
</head>
<body>
    <!-- 头部导航 -->
    <header id="header">
        <div class="container">
            <div class="logo">
                <a href="index.html">我的博客</a>
            </div>
            <nav class="nav">
                <ul>
                    <li><a href="index.html" class="active">首页</a></li>
                    <li><a href="pages/about.html">关于</a></li>
                    <li><a href="pages/contact.html">联系</a></li>
                </ul>
            </nav>
            <div class="mobile-menu">
                <button id="menu-toggle"><span></span><span></span><span></span></button>
            </div>
        </div>
    </header>

    <!-- 主内容区 -->
    <main class="container">
        <!-- 博客文章列表 -->
        <section class="content">
            <div class="post-list" id="post-list">
                <!-- 文章卡片将通过JavaScript动态加载 -->
                <div class="loading">加载中...</div>
            </div>
        </section>

        <!-- 侧边栏 -->
        <aside class="sidebar">
            <!-- 搜索框 -->
            <div class="search-box">
                <input type="text" placeholder="搜索文章..." id="search-input">
                <button id="search-btn">搜索</button>
            </div>

            <!-- 分类 -->
            <div class="category-list">
                <h3>文章分类</h3>
                <ul id="category-list">
                    <!-- 分类将通过JavaScript动态加载 -->
                </ul>
            </div>

            <!-- 热门文章 -->
            <div class="popular-posts">
                <h3>热门文章</h3>
                <ul id="popular-posts">
                    <!-- 热门文章将通过JavaScript动态加载 -->
                </ul>
            </div>
        </aside>
    </main>

    <!-- 页脚 -->
    <footer id="footer">
        <div class="container">
            <div class="footer-content">
                <div class="footer-info">
                    <h3>我的博客</h3>
                    <p>分享技术与生活的点滴</p>
                </div>
                <div class="footer-links">
                    <h4>快速链接</h4>
                    <ul>
                        <li><a href="index.html">首页</a></li>
                        <li><a href="pages/about.html">关于</a></li>
                        <li><a href="pages/contact.html">联系</a></li>
                    </ul>
                </div>
                <div class="footer-contact">
                    <h4>联系方式</h4>
                    <p>邮箱: contact@example.com</p>
                </div>
            </div>
            <div class="copyright">
                <p>&copy; 2024 我的博客. All rights reserved.</p>
            </div>
        </div>
    </footer>

    <!-- JavaScript文件引入 -->
    <script src="js/modules/utils.js"></script>
    <script src="js/modules/api.js"></script>
    <script src="js/components/header.js"></script>
    <script src="js/components/sidebar.js"></script>
    <script src="js/components/footer.js"></script>
    <script src="js/main.js"></script>
</body>
</html>